package com.qf.staff.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

/**
 * 工资表
 */
@Data
@TableName(value = "yu_payroll")
public class Payroll {
    public static final String COL_PAY_ID = "pay_id";
    public static final String COL_EMP_ID = "emp_id";
    public static final String COL_RANK = "rank";
    public static final String COL_SALARY = "salary";
    public static final String COL_STATUS = "status";
    /**
     * 工资id
     */
    @TableId(value = "pay_id", type = IdType.INPUT)
    private Integer payId;
    /**
     * 员工id
     */
    @TableField(value = "emp_id")
    private Integer empId;
    /**
     * 级别
     */
    @TableField(value = "`rank`")
    private Integer rank;
    /**
     * 每月工资
     */
    @TableField(value = "salary")
    private Double salary;
    @TableField(value = "`status`")
    @Version
    private Integer status;
}